

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutterdemo/common/calc.dart';
import 'package:flutterdemo/components/my_appbar.dart';
import 'package:flutterdemo/components/none.dart';

class Order extends StatefulWidget {
  Order({Key? key}) : super(key: key);

  @override
  _OrderState createState() => _OrderState();
}

class _OrderState extends State<Order> with TickerProviderStateMixin,SingleTickerProviderStateMixin{
  TabController? _tabController;

  @override
  void initState() {
    _tabController = TabController(vsync: this,length: 5);

    // TODO: implement initState
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Color.fromRGBO(233, 233, 233, 1),
      appBar: MyAppBar().getAppBar("订单管理",
        bottom: TabBar(
          labelColor: Theme.of(context).accentColor,
          isScrollable: true,
          unselectedLabelColor: Colors.black,
          indicatorSize:TabBarIndicatorSize.label,
          controller: _tabController,
            tabs: [
              Tab(text: "全部",),
              Tab(text: "代付款"),
              Tab(text: "待发货"),
              Tab(text: "待收货"),
              Tab(text: "待评价"),
            ],
            
          ),
      ) ,
      body: TabBarView(
        controller: _tabController,
        children: [
        None(),
        None(),
        None(),
        None(),
        None(),

      ],),
    );
  }
}
